

       
          let num = rand(1000,9999),
        	  	xingArr = ['赵','马','高','雷','苏','陈','林','郑','蔡','孙','钱','李','梁','曹','何','王','郑','周','程','蒋','高','吴'];
        	  	$(".numbers").text(num) 
        	  		for(let i = 0; i<8; i++){
        	  			let num2 =rand(0,9),
        	  			 num3 = rand(1000,9999),
        	  			 num4 = rand(3,9);
        	  			$(".mingul").append('<li><span>'+xingArr[rand(0,xingArr.length-1)]+'**</span><span class="onpun">1'+num4+num2+'****'+num3+'</span><span>'+(i*1+1)+'分钟前获取成功</span></li>')
        	  		}
        	  		
        	  		function rand(min,max) {
        	  		   return Math.floor(Math.random()*(max-min))+min;
        	  		}

        	      function btnForm(val){
        	        let form = $(val).parent(),
        	  	 	  uname = form.children().children('input[name=name]'),
        	  		  uphone = form.children('input[name=phone]'),
                  uproject = form.children().children('select[name=content]'),
        	        name = uname.val(),
        	        phone = uphone.val(),
                  projects = uproject.val();

        	    if (phone == "") {
        	  			alert("请填写手机号！");
        	  			uphone.focus();
        	  			return false;
        	  		}

        	  		let zzphone = /^1(3|4|5|6|7|8|9)\d{9}$/;
        	  		if (!(zzphone.test(phone))) {
        	  			alert("请填写正确的手机号！");
        	  			uphone.focus();
        	  			return false;
        	  		}

                    $(".motai2").show()

        	  	$.ajax({
        	        type:"post",
        	        url:"http://47.101.220.233/index.php/index/Mail/aliyunEmail",
        	        data: {
        	          name: name,
        	          phone: phone,
        	          project_id: 48,
        	          project_name: '日照森明',
        	          content: projects,
        	          url:document.URL,
        	        },
        	        success: function(res){	  
                      $(".motai2").hide()	
        	  		    alert('提交成功！');
        	        }
        	    })            
        	  };

            function gotoTop(){
            	document.documentElement.scrollTop = 0
            }









